//
//  WeightTest.m
//  IWeighMyself
//
//  Created by Francisco Gindre on 8/19/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <SenTestingKit/SenTestingKit.h>

#import <UIKit/UIKit.h>


#import "TestWeight.h"

#import "Weight.h"

@implementation TestWeight
@synthesize someWeight;

- (void) testConstructor {
	someWeight = [[[Weight alloc]initWithWeightInKilos:[NSNumber numberWithInt:80] date:[NSDate date]] retain];
	[someWeight retain];
	STAssertNotNil(someWeight,@"could not create weight");
}

-(void)testWeightInkilos {
	someWeight = [[[Weight alloc]initWithWeightInKilos:[NSNumber numberWithInt:80] date:[NSDate date]] retain];
	STAssertEquals([[NSNumber numberWithInt:80] floatValue],[someWeight.weightInKilos floatValue],@"weight not equals someWeight %@",someWeight.weightInKilos,nil);

}

@end



